<template>
  <div id="app" v-loading="loading">
    <router-view/>
  </div>
</template>
<script>

import {bus} from'./assets/js/bus.js'

export default {
  name: 'App',
  data () {
    return {
      loading: false
    }
  },
  created () {
    bus.$on('loading', value => this.loading = value)
  }
}
</script>

<style>
#app {
    height: 100%;
    width:100%;
    position: absolute;
  }
.el-loading-mask {z-index: 999999; background-color:#fff; }
</style>
